package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品信息对象 drug_info
 * 
 * @author ruoyi
 * @date 2024-06-25
 */
public class DrugInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品编号 */
    private Long drugId;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String drugName;

    /** 药品代号 */
    @Excel(name = "药品代号")
    private String drugCode;

    /** 药品类型 */
    @Excel(name = "药品类型")
    private String typeName;

    /** 药品价格 */
    @Excel(name = "药品价格")
    private Long price;

    /** 药品单位 */
    @Excel(name = "药品单位")
    private String units;

    /** 厂家名称 */
    @Excel(name = "厂家名称")
    private String factoryName;

    /** 厂家编号 */
    @Excel(name = "厂家编号")
    private String factoryCode;

    /** 数量 */
    @Excel(name = "数量")
    private Long num;

    /** 警告阈值 */
    @Excel(name = "警告阈值")
    private Long warnValue;

    /** 药品状态 */
    @Excel(name = "药品状态")
    private String status;

    public void setDrugId(Long drugId) 
    {
        this.drugId = drugId;
    }

    public Long getDrugId() 
    {
        return drugId;
    }
    public void setDrugName(String drugName) 
    {
        this.drugName = drugName;
    }

    public String getDrugName() 
    {
        return drugName;
    }
    public void setDrugCode(String drugCode) 
    {
        this.drugCode = drugCode;
    }

    public String getDrugCode() 
    {
        return drugCode;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setUnits(String units) 
    {
        this.units = units;
    }

    public String getUnits() 
    {
        return units;
    }
    public void setFactoryName(String factoryName) 
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName() 
    {
        return factoryName;
    }
    public void setFactoryCode(String factoryCode) 
    {
        this.factoryCode = factoryCode;
    }

    public String getFactoryCode() 
    {
        return factoryCode;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setWarnValue(Long warnValue) 
    {
        this.warnValue = warnValue;
    }

    public Long getWarnValue() 
    {
        return warnValue;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("drugId", getDrugId())
            .append("drugName", getDrugName())
            .append("drugCode", getDrugCode())
            .append("typeName", getTypeName())
            .append("price", getPrice())
            .append("units", getUnits())
            .append("factoryName", getFactoryName())
            .append("factoryCode", getFactoryCode())
            .append("num", getNum())
            .append("warnValue", getWarnValue())
            .append("status", getStatus())
            .toString();
    }
}
